package gz.itcast.util;

import org.junit.Test;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.Connection;

/**
 * Created 吴海杰 on 2017/2/27.
 */
public class TestPath extends HttpServlet{

    @Test
    public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        Connection conn=JdbcUtil.getConnection();
        System.out.println(conn);

    }

    @Test
    public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //连接数据库
       doGet(req,resp);
    }


}
